import request from '@/utils/request'

// 列表
export function getDataList(query) {
  return request({
    url: '/car/carWorkOrder/list',
    method: 'get',
    params: query
  })
}


export function getByCarId(id) {
  return request({
    url: '/car/carDecorate/queryCarDecorate/' + id,
    method: 'get'
  })
}

// 查询详情
export function getDecorateInfoByWorkId(id) {
  return request({
    url: '/car/carDecorate/getInfoByWorkId/' + id,
    method: 'get'
  })
}

// 新增

export function addDecorate(data) {
  return request({
    url: '/car/carDecorate',
    method: 'post',
    data: data
  })
}
